From c53ea10bfff0927f10e0bc6a41623308f3dc7366 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:37:13 -0600 Subject: [PATCH] simplify osm_tag option processing. (#1325) I suspect the check of "tagnd" was used in developement before opt_tagnd was added. The only thing the check did was ignore opt_tag values that started with tagnd, they weren't used elsewhere. --- osm.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osm.cc b/osm.cc index f24f0ee49..bb0c62db3 100644 --- a/osm.cc +++ b/osm.cc @@ -835,9 +835,7 @@ OsmFormat::osm_rte_disp_trail(const route_head* route) osm_write_tag("name", route->rte_name); osm_write_tag("note", route->rte_desc); - if (opt_tag && (case_ignore_strncmp(opt_tag, "tagnd", 5) != 0)) { - osm_write_opt_tag(opt_tag); - } + osm_write_opt_tag(opt_tag); fout->writeEndElement(); // way } -- 2.30.2